package top.wangjiu.reactive.rpc.config;


import top.wangjiu.reactive.rpc.generater.RequestIdGenerater;
import top.wangjiu.reactive.rpc.loadbalance.LoadBalance;

/**
 * 为某个service 添加配置
 */
public interface ServiceConfig {

    LoadBalance getLoadBalance();

    int getVersion();

    long getTimeout();

    RequestIdGenerater getRequestIdGenerater();

    default String getClientId(Class clientType){
        return clientType.getName() + ":" + getVersion();
    }
}
